This document describes the replication files associated with:
Hirofumi Miwa and Masaki Taniguchi. 2017. “Heterogeneity in Voter Perceptions of Party Competition in Multidimensional Space: Evidence from Japan.” International Political Science Review 38 (5): 673–689.

The following files are contained herein:
elite_survey_analysis.R (R code to replicate the analyses of elite survey data (Figures 1-2))
voter_survey_analysis.R (R code to replicate the analyses of voter survey data (Tables 2, A2-A5 and Figures 3, A1, A3-A4))
one_d_result_matrix.Rdata (estimation results of a one-dimensional ordinal IRT model)
two_d_result_matrix.Rdata (estimation results of a two-dimensional ordinal IRT model)
three_d_result_matrix.Rdata (estimation results of a three-dimensional ordinal IRT model)
four_d_result_matrix.Rdata (estimation results of a four-dimensional ordinal IRT model)
mlogit_result.Rdata (estimation results of the mixed logit model for the main analysis)
mlogit_result_2.Rdata (estimation results of the mixed logit model for a robustness check)

We cannot provide an R code to replicate Table A1 because face-to-face survey data necessary for this replication is not made in public.

Instructions for the analyses of elite survey data:
1. Download the data of the 2012 UTokyo-Aasahi Elite Survey (“2012UTASP20150910.csv”) from the project website (http://www.masaki.j.u-tokyo.ac.jp/utas/utasindex.html) and put them in your working directory.
2. Run “elite_survey_analysis.R.”
If you want to skip the estimation process of the graded IRT models to save time, please load “XXX_d_result_matrix.Rdata.”

Instructions for the analyses of voter survey data:
1. Get the data of the second wave of the Japanese Electoral Study V and put them in your working directory. You need to apply to use the data on the project website (https://jesproject.wixsite.com/jesproject).
2. Run “voter_survey_analysis.R.”
If you want to skip the estimation process of the mixed logit models to save time, please load “mlogit_result.Rdata” and “mlogit_result_2.Rdata.”

All data analyses in this article were carried out using R version 3.1.1 and R packages MCMCpack version 1.3-3 and mlogit version 0.2-4. If you do not have some of the above packages, please install them before running replication codes.

We found errors in Table A4 in online Appendix (the mean of D/LR and the S.D. of LDR). These errors were probably caused by our careless copying and pasting of these values from Table A2. In addition, we found that Table A5 and Figure A4 in online Appendix cannot be completely reproduced. We suspect that a random seed set before we ran mlogit() was different from a value recorded in this replication code for some reason. We apologize for this error, but the results obtained by this code are substantially the same as the results shown in online Appendix.

If you have any questions or find any problems with the files, please feel free to contact the corresponding author.